/*
 * @Author: chenxuan
 * @Date: 2022-07-14 09:05:03
 * @LastEditTime: 2023-01-05 10:03:31
 * @LastEditors: chenxuan
 */
import rules from "@/assets/rules/index.js"
const baserules={
    data() {
        return {
            rules:{
                blur_empty: [
                    {required: true, validator: rules.validateNonempty, trigger:'change'},
                    {max:30, message: "长度不超过30个字符", trigger:'change' }
                ],
                
                blur_empty_60: [
                    {required: true, validator: rules.validateNonempty, trigger:['blur']},
                    {max:60, message: "长度不超过20个字符", trigger:['blur'] }
                ],
                checked_empty: [
                    {required: true, validator: rules.validateNonempty, trigger:['change']},
                ],
                change_empty: [
                    {required: true, validator: rules.validateNonempty, trigger: "change"},
                ],
                code:[
                    {required: true, validator: rules.validateCode, trigger: "blur"},
                ],
                name:[
                    {required: true, validator: rules.validateName, trigger: "blur"},
                ],
                path:[
                    {required: true, validator: rules.validatePath, trigger: "blur"},
                ],
                en:[
                    {required: true, validator: rules.validateEn, trigger: "blur"},
                ]

            }
        };
    }
}
export {
    baserules
}